﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Auth/Auth.Master" AutoEventWireup="true" CodeBehind="Setters.aspx.cs" Inherits="CoastalClimbing.Auth.Setters" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <span class="thirtyWhite">Routes</span>
    <br />
    <asp:Label ID="lblMessage" runat="server" ForeColor="red" />
    <br />
    <table>
        <tr>
            <td>
                Setter Name:
            </td>
            <td>
                <asp:TextBox ID="txtSetter" runat="server" MaxLength="100" />
            </td>
            <td>
                <asp:Button ID="btnAddSetter" runat="server" Text="Add Setter" 
                    onclick="btnAddSetter_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="grvSetter" runat="server" AutoGenerateColumns="false" DataKeyNames="SetterID"
                    OnRowEditing="EditSetter" OnRowUpdating="UpdateSetter" OnRowDataBound="SetterDataBound"
                    OnRowCancelingEdit="CancelSetter" OnRowDeleting="DeleteSetter" AutoGenerateEditButton="true"
                    GridLines="Both" CellPadding="4" ForeColor="#333333">
                    <Columns>
                        <asp:TemplateField HeaderText="Setter Name">
                            <ItemTemplate>
                                <asp:Label ID="lblSetterName" runat="server" Text='<%# Eval("SetterName") %>' />
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="txtSetterName" runat="server" Text='<%# Eval("SetterName") %>' MaxLength="50" />
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("SetterID") %>'
                                    CommandName="Delete" Text="Delete" ForeColor="Black" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#E3EAEB" />
                    <EditRowStyle BackColor="#7C6F57" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#ffd80b" Font-Bold="True" ForeColor="333333" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
